package me.ereach.casting;

public final class Employee extends Person {
    private float baseSalary;
    private float hourlyRate;
    private float extraHours;

    public Employee(String name, String gender, float baseSalary, float hourlyRate, float extraHours) {
        super(name, gender);
        this.baseSalary = baseSalary;
        this.hourlyRate = hourlyRate;
        this.extraHours = extraHours;
    }

    public float getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(float baseSalary) {
        this.baseSalary = baseSalary;
    }

    public float getHourlyRate() {
        return hourlyRate;
    }

    public void setHourlyRate(float hourlyRate) {
        this.hourlyRate = hourlyRate;
    }

    public float getExtraHours() {
        return extraHours;
    }

    public void setExtraHours(float extraHours) {
        this.extraHours = extraHours;
    }

    @Override
    public String toString() {
        return "Employee { " + super.toString() + ", baseSalary: " + baseSalary + ", hourlyRate: " + hourlyRate + ", extraHours: " + extraHours + " }";
    }
}
